package br.com.canvasForAll.model.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "COR")
@NamedQueries(value = {
		@NamedQuery(name = "Cor.pesquisa", query = "SELECT c FROM Cor c"),
		@NamedQuery(name = "Cor.duplicata", query = "SELECT COUNT(c) FROM Cor c WHERE c.id = :id")
})
public class Cor implements Serializable {

	private static final long serialVersionUID = -4674364693501074179L;

	@Id
	@Column(name = "ID_COR")
	private Long id;
	
	@Column(name = "RGB_COR")
	private String RgbCor;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRgbCor() {
		return RgbCor;
	}

	public void setRgbCor(String rgbCor) {
		RgbCor = rgbCor;
	}

}
